<form class="wide-form" method="POST" id="contact-form" onSublit="">
  <fieldset>
    <legend>Add new tab</legend>
    <label>Tab name</label>
    <input type="text" name="tab_name" id="tab_name">
    <label>Filters</label>
 	<label class="checkbox">
      <input name="filter[is_member]"type="checkbox"> Cars uplooaded from a cars for dealer member
    </label>
	<br>

    <button type="submit" class="btn btn-success">Submit</button>
  </fieldset>
</form>

<? if (count($this->tabs)): ?>
<table class="table table-striped table-condensed table-hover">
  <thead>
      <tr>
          <th>ID</th>
          <th>Tab Name</th>
          <th>Filters</th>
          <th>Actions</th>
      </tr>
  </thead>
  <tbody>
    <? foreach ($this->tabs as $tab): ?>
    <tr>
      <td><?= $tab->id ?></td>
      <td><?= $tab->name ?></td>
      <td><?= $tab->filter ?></td>
      <td>
        <a href="/manage/car-tabs?delete=<?= $tab->id ?>" class="btn btn-mini btn-danger">Delete</a>
      </td>
    </tr>
    <? endforeach; ?>
  </tbody>
</table>
<? endif; ?>

